package com.example.service;


import com.example.mapper.General2Mapper;
import com.example.mapper.GeneralMapper;
import com.example.pojo.aboutMajors.Majors;
import com.example.pojo.aboutSchool.Schools;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class General2Service {

    @Autowired
    private General2Mapper generalMapper;


    public List<Schools> getCollegeList(Map<String, Object> params) {
        return generalMapper.getCollegeList(params);
    }

    public List<Majors> getMajorList(Map<String, Object> params) {
        return generalMapper.getMajorList(params);
    }

    public List<Majors> getCollegeMajors(Map<String, Object> params) {
        return generalMapper.getCollegeMajors(params);
    }

    public List<Schools> getMajorColleges(Map<String, Object> params) {
        return generalMapper.getMajorColleges(params);
    }
}
